package com.poobo.base;

import java.io.Serializable;
import java.util.List;


/**
 * 基本baseDao接口
 * @author xiayy
 * 2015-6-23
 */

public interface  IBaseDao  {
	
	public void add(Object instance);

	public void del(Object instance);

	public void update(Object stinstanceu);
	
	public void saveOrUpdate(Object inObject);

	public List<?> findAll(String hql);

	public List<?> findByParams(String hql,  Object[] objects);

	public void refresh();
	
	public <E> List<E> querySQL(String sql);
	
	public Object getObjectById(Class clas,Integer id);
	
	public <E> E selectObjectById(final Class c, final Serializable id);
	
	public <E> List<E> queryAccountByPager(String hql,String page,String rows);
	
	public int queryTableCount(String hql);
	
	public boolean contains(Object object);
	
	public void updateByHql(String hql, Object[] objects);
}

